<?php defined('SYSPATH') or die('No direct script access.') ?>
<script>
var uri = '<?php echo URL::site('book/balance') ?>';
</script>
<div class="panel panel-default">
	<!-- Default panel contents -->
	<div class="panel-heading">
		<ol class="breadcrumb">
			<li<?php echo is_null($orderid) ? ' class="active"' : '' ?>><?php echo HTML::anchor('book/balance', 'Ваш баланс') ?></li>
		</ol>
	</div>
	<div class="panel-body">
		<p>текущий курс ¥: <strong><?php echo $exchange ?>руб.</strong></p>
		<p>карта Сбербанка для перевода: <strong>5469 1800 1344 4479</strong> EVGENIY VLASKIN</p>
	</div>

	<!-- Table -->
	<div id="balance_table" class="table-responsive">
		<?php
		echo $balance_table;
		?>
	</div>

	<div class="panel-footer">Panel footer</div>
</div>

<!-- Modal -->
<div class="modal fade" id="balance_modal" tabindex="-1" role="dialog" aria-labelledby="balance_modalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title" id="balance_modalLabel"></h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" role="form" id="balance_form" method="POST">
					<div class="form-group">
						<label for="value" class="col-sm-2 control-label">Сумма</label>
						<div class="col-sm-4">
							<input type="hidden" id="userid" name="userid">
							<input type="hidden" id="type" name="type">
							<input type="text" class="form-control" id="value" name="value" placeholder="укажите сумму">
						</div>
					</div>
					<div class="form-group">
						<label for="orderid" class="col-sm-2 control-label">ID заказа</label>
						<div class="col-sm-4">
							<input type="text" class="form-control" id="orderid" name="orderid" placeholder="укажите ORDERID">
						</div>
					</div>
				</form>

			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">Закрыть</button>
				<button type="button" class="btn btn-primary" id="balance_submit" rel="Выполняю...">Выполнить</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal-dialog -->
</div><!-- /.modal -->

